function actionFormatter(value, row, index) {
  var state = row.state;
  var id = row.id;
  var res = '<button data-toggle="modal" class="btn btn-primary" href="list.html#modal-form" data-row='+id+'>修改</button>';
  if (state == 1)
    res += ' <button type="button" class="btn btn-default" onclick="changeSate(\'' + id + '\',0)" >禁用</button>';
  else
    res += ' <button typ-e="button" class="btn btn-info" onclick="changeSate(\'' + id + '\',1)" >启用</button>';
  res += ' <button typ-e="button" class="btn btn-danger" onclick="deleteOne(\'' + id + '\')">删除</button>';
  return res;
}